package com.hospital.insurancepeople.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.insurancepeople.module.entity.AllPayment;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AllPaymentMapper extends BaseMapper<AllPayment> {
    List<AllPayment> getOutpPrepay(@Param("patientId") String patientId, @Param("transactType") String transactType);

    List<AllPayment> getInpPrepay(@Param("patientId") String patientId, @Param("transactType") String transactType);

    List<AllPayment> getOutpUnsettle(@Param("patientId") String patientId);

    List<AllPayment> getInpUnsettle(@Param("patientId") String patientId);

    List<AllPayment> getPeisPrepay(@Param("patientId") String patientId, @Param("transactType") String transactType);

    List<AllPayment> getPeisUnsettle(@Param("patientId") String patientId);

    List<AllPayment> getPeisUnitUnsettle(@Param("patientId") String patientId);

    String getMaxOutpRcptNo();

    String getTokenUrl();

    String getOutpRefundUrl();

    void updateApplyRec(@Param("patientId") String patientId, @Param("esbTransDate") String esbTransDate, @Param("inpOrOutp") String inpOrOutp
            , @Param("operNo") String operNo, @Param("status") String status, @Param("date") Date date);

    List<AllPayment> getoutpUnbill(@Param("patientId") String patientId);

    List<AllPayment> getinpUnbill(@Param("patientId") String patientId);

    List<AllPayment> getpeisUnbill(@Param("patientId") String patientId);

    List<AllPayment> getpeisunitUnbill(@Param("patientId") String patientId);


}
